package day6;

import java.io.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class DataIn {
    public static void main(String[] args) {
        try {
//            DataOutputStream dout=new DataOutputStream(new FileOutputStream("F:/java76/data.txt"));
//            dout.writeInt(1000000);
//            dout.writeDouble(Math.PI);
//            dout.writeBoolean(2>1);
//            dout.writeBoolean(false);
//            dout.writeUTF("教育改变生活");
//            dout.close();

            DataInputStream din=new DataInputStream(new FileInputStream("F:/java76/data.txt"));
            int i=din.readInt();
            double d=din.readDouble();
            boolean b1=din.readBoolean();
            boolean b2=din.readBoolean();
            String s = din.readUTF();
            System.out.println(i);
            System.out.println(d);
            System.out.println(b1+" , "+b2);
            System.out.println(s);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
